package com.android.sha.tools;

import android.content.Context;
import android.widget.TextView;
import android.widget.LinearLayout.LayoutParams;

public class ViewHelper {
	/*
	 * 获取一个分割线
	 */
	public static TextView getDivider(Context view , int height){
		TextView tvDivider =new TextView(view);
		LayoutParams paramsDivider = new LayoutParams(LayoutParams.FILL_PARENT,height);
		tvDivider.setLayoutParams(paramsDivider);
		tvDivider.setBackgroundResource(android.R.drawable.divider_horizontal_dark);
		return tvDivider;
	}
}
